package com.rock.platform.core;

import java.io.Serializable;
import java.util.List;

public abstract interface IGenericService {
	public abstract <T, ID extends Serializable> T findByID(ID paramID,
			boolean paramBoolean, Class<T> paramClass);

	public abstract <T> List<T> findAll(Class<T> paramClass);

	public abstract <T> void add(T paramT);

	public abstract <T> T update(T paramT);

	public abstract <T> void delete(T paramT);

	public abstract <T, ID extends Serializable> void deleteByID(ID paramID,
			Class<T> paramClass);

	/** @deprecated */
	public abstract void flush();

	/** @deprecated */
	public abstract void clear();
}
